package com.qj.daibei.service;

import com.github.pagehelper.PageInfo;
import com.qj.daibei.pojo.Loan;
import com.qj.daibei.pojo.ShouldPayBack;
import com.qj.daibei.pojo.ShouldPayBackCustom;

import java.util.List;

/**
 * author wml
 * Created on 2021/10/22 20:22
 */
public interface ShouldPayBackService {

    int insertShouldPayBackByBatch(List<ShouldPayBack> list);

    // 查询出没有逾期的待还款记录
    List<ShouldPayBackCustom> findShouldPayBackCustomByLoanId(List loanIdList);

    PageInfo<ShouldPayBackCustom> findShouldPayBackCustomByLoanIdByPage(List loanIdList, int pageNum, int pageSize);

    int updateShouldPayBackById(ShouldPayBack shouldPayBack);

    // 查询出逾期的待还款记录
    List<ShouldPayBackCustom> findShouldPayBackCustomByLoanIdAndOverdue(List loanIdList);
}
